package com.cssl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;

/**
 * 
 * @TableName nursing
 */
@TableName(value ="nursing")
@Data
@Document("nursing")
public class Nursing implements Serializable {
    /**
     * 护理编号
     */
    @MongoId
    @TableId(type = IdType.AUTO)
    private Integer nid;

    /**
     * 标题
     */
    private String ntitle;

    private String ndetail;

    /**
     * 
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date ndate;

    /**
     * 宠物类型（2狗、1猫）
     */
    private String ntype;

    /**
     *  图片
     */
    private String nfilename;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}